home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
italia
/
x-trash.lha
/
X-Trash
/
X-Trash.doc
< prev
next >
Wrap
Text File
|
1996-01-30
|
13KB
|
374 lines
====================================
X-Trash v1.3
The trashcan maintenance utility
© 1994-96 by Rudi Chiarito
====================================
Contents
^^^^^^^^
1. Introduction
2. Usage
3. Odds and ends
4. Program history
* · * · * · * · * · * · * · * · * · * · * · * · * · *
/* *\
* 1 * Introduction
\* */ ^^^^^^^^^^^^^^
1.1. Preface
^^^^^^^^^^^^^^
The programs and files in this distribution are FREEWARE. That is: they
are copyright © Rudi Chiarito, but they may be freely distributed as long as
no more than a nominal fee is charged to cover distribution costs. Moreover
they can't be distributed separately or in a commercial package without
written permission from the author. That's all.
1.2. I'm Trash, X-Trash
^^^^^^^^^^^^^^^^^^^^^^^^^
How many Amigans actually use the notorious Trashcan? Is it any good? As
to me, I could have been using it the first two-three times I toyed around
with my old, luxuriant A500; i.e., a long long long time ago.
It's unlikely a coincidence that hardly anybody uses the Trashcan drawer
on the Amiga. Its use is anything but handy and here are some of the
reasons:
· Unlike the Mac, Amiga places the Trashcan drawer in the disk's root
directory window (it would be far better if it could be left out)
· A Trashcan is tied to the volume it is on: there must be a Trashcan for
each of the mounted volumes
· As a consequence, if you drag (e.g.) "Antani:Blinda/Patuo/Cuda" in the
"Work:" Trashcan, it will simply be copied to the "Work:Trashcan"
drawer, instead of being moved to "Antani:Trashcan/Cuda".
· If (e.g.) you need to empty the "Work:" Trashcan, you'll have to open
the root directory window of "Work:", click on "Trashcan" and then
select the menu item "Icons/Empty trash..."
· After all, many people have got used to live without the Trashcan,
simply by deleting the file(s)
Have you got enough of it? Never mind: X-Trash is here (to stay!). If you
would like to use the Trashcan without worries, this brilliant program will
be the answer to all of your needs (at least that's what I hope).
/* *\
* 2 * Usage
\* */ ^^^^^^^
2.1. Requirements
^^^^^^^^^^^^^^^^^^^
X-Trash has no special requirements: it needs 2.0+ OS and reqtools.library
V38+ (by Nico François). Since it adds an AppIcon and an AppMenu to the WB,
it also needs the Workbench to be running at launch [lunch? :)] time.
As of v1.1, it also supports localization.
2.2. Installation
^^^^^^^^^^^^^^^^^^^
Pretty tricky, this. Just drag the icon wherever you want. That's all. In
order to have the program running automatically upon every reboot, move the
icon into the WBStartup drawer. If you're using locale.library copy the
catalog(s) file you need in the Locale:catalogs/<language> drawer. Maybe
version 2 will feature an installation script :).
2.3. Getting started
^^^^^^^^^^^^^^^^^^^^^^
When run, X-Trash will show up a new, gaudy, icon in the main Workbench
window. Drop the icons you want to get rid of on it: you can use multiple
selection, if you want. It will also accept icons from different drawers/
volumes. Icons will then be moved from their original place to the
correspondent Trashcan.
Dropping volume icons will result in executing the correspondent command
defined with tooltypes. Futher information below.
Try and have a good look at the "Tools" menu. You should notice a new
item, called "Empty trashcan(s)...". Select it and a requester will pop up
asking you how many trashcans you're going to flush.
· "All"
· "Select..."
If there are any volumes whose Trashcans are NOT EMPTY, it'll pop up a
volume requester, which will show you ONLY SUCH volumes. Choose the
one whose Trashcan you want to flush. It will carry on asking you
volumes until all the Trashcans are empty or until you enter an empty
string, close the window or select the "Cancel" gadget.
· "Icons"
If you've selected one/more volume icons, it'll empty the correspondent
Trashcan(s). It ONLY WORKS WITH VOLUME ICONS: directories or files just
won't do!
· "Cancel"
Aborts requester
Double-click on the AppIcon and another request will appear (it also pops up
when you try to run X-Trash again while it is still running)
· "Empty..."
Makes the other requester appear.
· "About..."
Gives you information about X-Trash.
· "Quit"
Quits X-Trash.
· "Cancel"
Aborts requester
Now X-Trash can also be quitted by sending it a CTRL-C signal (you can also
use the BREAK command, if X-Trash has NOT been run from Workbench/WBStartup.
Otherwise you need a system monitor like ARTM or a Shell command like
BreakTask -- which is part of the 3.1 Developer Kit, archive DevTools.lha).
NOTEZ BIEN: At the moment WB seems to get confused when a file without the
.info file has been modified, moved or deleted and the menu item
"Windows/Show/All files" is selected. Such a 'bug' (it never crashes the
machine, though) is more evident if you're using Release 2.0... WB 3 has a
smarter approach. Anyway fake icons should appear only if you have Trashcan
subdirectories opened. Selecting the menu item "Windows/Update" should
get rid of them.
2.4. Tool Types
^^^^^^^^^^^^^^^^^
Version 1.1 adds support for two Tool Types:
· CONFIRM
If set to YES, X-Trash will ask you for a confirmation before flushing
a Trashcan. If set to ALWAYS, it will do it for EVERY sub-directory.
Defaults to NO.
· PROTECT
If set to ASK, X-Trash will ask you for a confirmation before resetting
delete-protection on a file/directory.
IF set to YES, it will always make sure the file/drawer is delete-able.
Defaults to NO.
Version 1.3 adds EIGHT more Tool Types:
· TITLE
Name of the AppIcon. Defaults to "X-Trash".
· XPOS
X coordinate of the AppIcon.
· YPOS
Y coordinate of the AppIcon.
· NOLOCALE
If present, X-Trash will not attempt to open locale.library and the
catalog file.
· DRAWER
Name of the trashcan directories to create/move_files_to/flush. It
could be 'Cestino' for italian users, for example. Defaults to
'Trashcan'.
· DROPSOUND
Full path name of the sample to be played when moving files to the
trashcan(s). It needs WB3+ to work, as it uses datatypes.library.
Defaults to no sound.
· FLUSHSOUND
Full path name of the sample to be played when flushing the trashcan(s)
drawer(s). It needs WB3+ to work, as it uses datatypes.library.
Defaults to no sound.
· DROP[device/volume]
AmigaDOS command to be launched (asynchronously) when a VOLUME icon is
dropped on X-Trash's one. Defaults to no command.
Suppose you have a dh7: hard disk whose name is 'Sushi'. When you drop
its icon on X-Trash's, the program will search (in order) tooltypes
'DROPDH7', 'DROPSUSHI', 'DROP'. Please note the missing trailing colon
(DH7 instead of DH7:). The first one to be found (if there are any)
will be executed. Occurrencies (max. 4) of "%s"s in the tooltype will
be replaced by the DEVICE NAME.
It could be handy for ejecting/formatting removable medias (CD-Roms
or ZIP drives, for istance). Feel free to let me know if you have
brightest ideas. 8)
For example, the tooltype
* DROPSUSHI=list "%s:" all dirs >CON://///CLOSE/WAIT
would have made X-Trash run
* list "DH7:" all dirs >CON://///CLOSE/WAIT
While the tooltype
* DROPSUSHI=list "%s:Trashcan" >CON://///CLOSE/WAIT
would have made X-Trash run
* list "DH7:Trashcan" >CON://///CLOSE/WAIT
(It shows the contents of the Trashcan in a console window)
Always remember to put the trailing colon in the command string!!! It
is also a wise idea to put the %s string between (double) quotation
marks.
/* *\
* 3 * Odds and ends
\* */ ^^^^^^^^^^^^^^^
3.1. X-Trash: the making
^^^^^^^^^^^^^^^^^^^^^^^^^^
Up to v1.2, X-Trash was written using the mighty AmigaE v3.1 by Wouter van
Oortmerssen. I wrote the Assembly port but the source was strangely hiding
itself somewhere... So I had to port it once again :( Now v1.3 is 50% the
size of v1.2, plus it's FASTER and adds some new features!!!
If you have translated the catalog file, please send it to me: it will be
included in the next release!
3.2. Acknowledgements
^^^^^^^^^^^^^^^^^^^^^^^
I would like to thank...
· Commodore-Amiga and Amiga Technologies...
· Wouter van Oortmerssen...
· Nico François...
· Luca Viola for his Amiga (and also his patience!)
· Marco Musso, Danny Amor, Michael Ostergren, Sten Bredenberg, Stanislav
Brabec, Marcin Orlowski, Giuseppe Ghibò...
Suggestions and locale catalogs
· Cinzia Montuori...
Unconscious bug-fixing suggestions! (she's NOT my girl/woman/wife!)
· Sting, D. Fagen, Queen, D. Bowie, G. & P. Conte, Yes, Bangles, INXS, Elio
e le storie tese, Dire Straits, Cure, D. Byrne, W.A. Mozart, B52's, Toto,
L. Dalla, The Who, J.M. Jarre, Fleetwood Mac, L. van Beethoven...
· D. Adams, M. Serra, K. Vonnegut, A. Rice, E. Queen, H. Hesse...
· Elaine...
Kimi wa kizi o kaita ka... tonikaku watasi wa kimi o ai suru!
Their contribution has been invaluable to the development of this program!
3.3. Future improvements
^^^^^^^^^^^^^^^^^^^^^^^^^^
"If it's a future world we fear
We have tomorrow's seeds right here
For you can hold them in your hand
Or let them fall into the sand"
- Sting
Here's what I'm working on, anyway.. These features will be part of V2 :)
· An Installer script
· Faster Trashcan flushing: use of ExAll() rather than Examine()/ExNext()
· Support for commodity.library
·
Any suggestions, as usual, would be very appreciated. Meanwhile *please*
also check its stability and let me know about it...
3.4. The author
^^^^^^^^^^^^^^^^^
This program is FREEWARE. I don't ask anything, but if you like, you can
send me PD programs, sources, money (why not?) or anything you can think of
(I'd like to receive sweetmeats, anyway). Oh, yes, you can send me nice
postcards, too.
Here's my address... of course you can also send me suggestions, comments,
questions, bug reports (Aaaaargh! God Forbid()!) and gossips! Email is far
better: I study in Pisa (550kms from home) and most of the time I'm there.
As if it weren't enough, mail delivery in Italy is sooooo sloooooooooooow...
SnailMail: Rudi Chiarito
Via Malpighi, 8
I-80014 Giugliano (NA)
E-Mail: chiarito@cli.di.unipi.it
WorldWideWeb: http://www.cli.di.unipi.it/~chiarito/
IRC: Nutello
(Ooops, I almost forgot: excuse me for my English!!!)
/* *\
* 4 * Program history
\* */ ^^^^^^^^^^^^^^^^^
****************************************************************************
* v. 1.00 [1.000] - 27/06/94 - First public release!!! *
* · Code cleanup. *
* · Fancy icon (by Michele) added. Don't put the blame on me! *
* == - == - == - == - == - == - == - == - == - == - == - == - == - == - == *
* v. 1.1 [1.042] - 13/7/94 - First public update!!! *
* · Added CONFIRM and PROTECT Tool Types support. *
* · Improved WB icon update upon deletion. *
* · Added locale.library support *
* · New icon design. Now you can put the blame on me... *
* == - == - == - == - == - == - == - == - == - == - == - == - == - == - == *
* v. 1.1+ [1.043] - 26/2/95 *
* · Recompiled using AmigaE v3.0a. Program size is 1400 bytes shorter!!! *
* == - == - == - == - == - == - == - == - == - == - == - == - == - == - == *
* v. 1.2 [1.045] - 13.6.95 *
* · Removed a nasty BUG which appeared when CONFIRM was set *
* · Now adds just ONE AppMenu which pops up a requester *
* == - == - == - == - == - == - == - == - == - == - == - == - == - == - == *
* v. 1.3ß [1.067] - 13.10.95 *
* · Ported to Assembly 8) *
* · Added icon name/position/nolocale tooltypes *
* == - == - == - == - == - == - == - == - == - == - == - == - == - == - == *
* v. 1.3ß+ [1.073] - 16.11.95 *
* · Added drawer name/sound/volume drop action tooltypes *
* == - == - == - == - == - == - == - == - == - == - == - == - == - == - == *
* v. 1.3ß++[1.074] - 17.1.96 [My birthday! 8)] *
* · Removed a VERY NASTY BUG which had never hurt anyone, though 8) *
* · The executable file can be renamed now *
* · Quits if BREAK (CTRL-C) signal is received *
* == - == - == - == - == - == - == - == - == - == - == - == - == - == - == *
* v. 1.3 [1.075] - 29.1.96 *
* · Volume requester appears ONLY if one or more trashcans are not empty *
* · Ready for public release! Delays are due to the new HD I've bought *
* [I had lost some of the include files :(] *
****************************************************************************
* akes it possible! Only Amiga makes it possible! Only Amiga makes it poss *
****************************************************************************
* · * · * · * · * · * · * · * · * · * · * · * · * · *
"Per fortuna che c'è uno · *** · ***
Legge solo la Sacra Bibbia · * · * · * · *
Ore ed ore, notte e giorno · * · * · *
Ha un'indice d'ascolto fra i più bassi · * · * · **
Ma pazienza..." · * · * · *
· **** · **
- Giorgio Conte & Elio e le Storie Tese